Name :
Example3 : MACD

Variables : name,type,value
r,Integer,9
q,Integer,26
p,Integer,12

Description :
This example computes the MACD indicator.

Formula :
REM This example computes the MACD indicator

fastMA = exponentialAverage[p](close)
slowMA = exponentialAverage[q](close)

myMACD = fastMA - slowMA
line1 = exponentialAverage[r](myMACD)

RETURN myMACD - line1 AS "MACD Histogram"



